package com.ctshk.sapp.visa.controller;


import com.ctshk.common.annotations.OperationLogAnnotation;
import com.ctshk.common.dto.Result;
import com.ctshk.common.enums.OperationLogModel;
import com.ctshk.common.enums.OperationLogType;
import com.ctshk.rpc.visa.dto.visa.VisaOrderInfoResp;
import com.ctshk.rpc.visa.dto.visa.VisaOrderReceiptDetailDTO;
import com.ctshk.rpc.visa.req.visa.VisaOrderInfoReq;
import com.ctshk.rpc.visa.req.visa.VisaOrderReceiptDetailReq;
import com.ctshk.rpc.visa.service.IVisaOrderReceiptService;
import com.ctshk.rpc.visa.service.IVisaOrderService;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.ctshk.common.web.support.BaseController;

import javax.validation.Valid;

/**
 * <p>
 * 签证订单-收据表 前端控制器
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-26
 */
@RestController
@RequestMapping("/visa-order-receipt")
public class VisaOrderReceiptController extends BaseController {
    @DubboReference
    private IVisaOrderReceiptService visaOrderReceiptService;

    @ApiOperation(value="签证订单收据详情", notes="签证订单收据详情(陈雷)")
    @OperationLogAnnotation(operModul = OperationLogModel.CUSTOM, operType = OperationLogType.QUERY, operTitle = "签证订单收据详情", operDesc = "签证订单收据详情")
    @PostMapping("/info")
    public Result<VisaOrderReceiptDetailDTO> visaOrderReceiptDetail(@RequestBody @Valid VisaOrderReceiptDetailReq visaOrderReceiptDetailReq) {
        return visaOrderReceiptService.visaOrderReceiptDetail(visaOrderReceiptDetailReq);
    }
}
